package com.googlecode.lemyriapode.prgechecs;

import com.googlecode.lemyriapode.prgechecs.gui.BoardGui;
import com.googlecode.lemyriapode.prgechecs.univers.Univers;

public class LaunchChessPrg {

    private final static boolean NOIR = false;
    private final static boolean BLANC = true;

    private LaunchChessPrg() throws CloneNotSupportedException {
        Univers U = new Univers();

//        for (int col = 1 ; col <= 8 ; col++) {
//            U.domaine.ajoutObstacle(7, col, "p", NOIR);
//            U.domaine.ajoutObstacle(2, col, "p", BLANC);
//        }

        U.domaine.ajoutObstacle(1, 1, "r", true);
        U.domaine.ajoutObstacle(1, 2, "n", true);
        U.domaine.ajoutObstacle(1, 3, "b", true);
        U.domaine.ajoutObstacle(1, 4, "q", true);
        U.domaine.ajoutObstacle(1, 5, "k", true);
        U.domaine.ajoutObstacle(1, 6, "b", true);
        U.domaine.ajoutObstacle(1, 7, "n", true);
        U.domaine.ajoutObstacle(1, 8, "r", true);
        U.domaine.ajoutObstacle(8, 1, "r", false);
        U.domaine.ajoutObstacle(8, 2, "n", false);
        U.domaine.ajoutObstacle(8, 3, "b", false);
        U.domaine.ajoutObstacle(8, 4, "q", false);
        U.domaine.ajoutObstacle(8, 5, "k", false);
        U.domaine.ajoutObstacle(8, 6, "b", false);
        U.domaine.ajoutObstacle(8, 7, "n", false);
        U.domaine.ajoutObstacle(8, 8, "r", false);
        BoardGui ihm = new BoardGui(U);
        ihm.setVisible(true);
        U.chemin.enZigZag(U.avatar);
    }

    public static void main(String[] args) throws CloneNotSupportedException {
        new LaunchChessPrg();
    }
}
